import request from '@/utils/request'

// 查询客户线索列表
export function listMerchantsrecord(query) {
  return request({
    url: '/merchantsrecord/merchantsrecord/list',
    method: 'get',
    params: query
  })
}

// 查询客户线索跟进记录详细
export function getMerchantsrecord(id) {
  return request({
    url: '/merchantsrecord/merchantsrecord/' + id,
    method: 'get'
  })
}

// 新增客户线索跟进记录
export function addMerchantsrecord(data) {
  return request({
    url: '/merchantsrecord/merchantsrecord',
    method: 'post',
    data: data
  })
}

// 修改客户线索跟进记录
export function updateMerchantsrecord(data) {
  return request({
    url: '/merchantsrecord/merchantsrecord',
    method: 'put',
    data: data
  })
}

// 删除客户线索跟进记录
export function delMerchantsrecord(id) {
  return request({
    url: '/merchantsrecord/merchantsrecord/' + id,
    method: 'delete'
  })
}
